<h3 ng-show="type==1"><B>小区banner排序</B></h3>
<h3 ng-show="type==2"><B>小区话题公告排序</B></h3>
<div class="form-group">
    <label class="control-label" for="textinput">类型:</label>
    <select ng-model="type" ng-options="m.value as m.name for m in bannerType"
            ng-change="getCommunityBanner()">
        <option value="">-- 请选择 --</option>
    </select>
    <label class="control-label" for="textinput">小区:</label>
    <select ng-model="communityId" ng-options="m.objId as m.communityName for m in communityLabelList.data"
            ng-change="getCommunityBanner()">
        <option value="">-- 请选择 --</option>
    </select>

    <a style="margin-left: 20px" ng-show="communityId !='all'"
       class="btn-primary btn-sm nodecoration"
       ng-click="setOrder()">保存顺序设置</a>
</div>

<br><br>
<div class="tab-content">
    <div class="tab-pane active" id="tab_a">
        <table class="table table-condensed">
            <thead>
            <tr>
                <th ng-show="type==1">图片</th>
                <th ng-show="type==2">内容</th>
                <!--<th>顺序</th>-->
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="bind in bindList">
                <td ng-show="type==1"><img style="width:200px;" ng-src="{{bind.bannerId.imageURL}}"></td>
                <td ng-show="type==2">{{bind.bannerId.message}}</td>
                <!--<td>{{bind.displayOrder}}</td>-->
                <td ng-show="communityId !=null">
                    <button class="btn-primary btn-sm nodecoration"
                            ng-click="upNews($index)">向上
                    </button>
                    <button class="btn-primary btn-sm nodecoration"
                            ng-click="downNews($index)">向下
                    </button>
                    <button type="button" class="btn-primary btn-sm nodecoration" ng-show="bind.bannerId.openType !=3"
                            ng-click="dataView(bind)">
                        查看
                    </button>
                    <button class="btn-danger btn-sm"
                            ng-click="bannerDelete(bind.objId)">删除
                    </button>

                    <!--<a class="btn-danger btn-sm" ng-click="removeNews(news.objId)">删除</a>-->
                </td>

            </tr>
            </tbody>
        </table>
    </div>
</div>